/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import javax.persistence.*;
import play.data.validation.*;
import play.db.jpa.*;

/**
 *
 * @author GJean
 */
@Entity
@Table(name = "groups")
public class Group extends Model {

    @Required
    public String name;
    @Required
    public String description;

    public Group(String name, String description) {

        this.name = name;
        this.description = description;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
